package com.modai.springcloud.entities;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：modai
 * @date ：Created in 2020-12-14 21:34
 * @description：
 */
@RestController
public class NacosPaymentController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/nacos/payment/{id}")
    public String nacosTest(@PathVariable("id") Integer id){
        return "this is nacos Payment. por: "+serverPort+"\tDataId: "+id;
    }
}
